public class test {
    public static void main(String[] args) {
        Demo demo = new Demo();
        int[] cur = {0,0,1,1};
        int a = demo.longestOnes(cur,1);
        System.out.println(a);
    }
}
